package work;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import javax.sql.DataSource;

@Configuration
@ComponentScan(basePackages = "work")
//配置文件地址
@PropertySource(value = {"classpath:jdbc.properties","ZXX"},ignoreResourceNotFound = true)
public class SpringConfig {

    @Bean
    public UserDao getUserDao(){
        return new UserDao();
    }


}
